package cn.cvs.service.impl;

import cn.cvs.dao.SupplierMapper;
import cn.cvs.pojo.Supplier;
import cn.cvs.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("supplierServiceImpl")
public class SupplierServiceImpl implements SupplierService {
    @Autowired
    @Qualifier("supplierMapper")
    private SupplierMapper supplierMapper;
    @Override
    public List<Supplier> supList(Integer pageIndex, Integer pageSize, String supName, String supCode) {
        return supplierMapper.supList(pageIndex, pageSize, supName, supCode);
    }

    @Override
    public int count(String supName) {
        int result = supplierMapper.count(supName);
        return result;
    }
}
